package chances.epg.ui.taglib.model;

import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;

@SuppressWarnings("serial")
public class Widget implements java.io.Serializable {
	private String id;
	private String type;
	private Direction direction;
	private String options;
	private String content;
	private List<String> links = new ArrayList<String>();

	@JsonIgnore
	private Rect rect;

	public void addLink(String link) {
		links.add(link);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getOptions() {
		return options;
	}

	public void setOptions(String options) {
		this.options = options;
	}

	public void setContent(String string) {
		this.content = string;
	}

	public String getContent() {
		return content;
	}

	public Direction getDirection() {
		return direction;
	}

	public void setDirection(Direction direction) {
		this.direction = direction;
	}

	public Rect getRect() {
		return rect;
	}

	public void setRect(Rect rect) {
		this.rect = rect;
	}

	public List<String> getLinks() {
		return links;
	}
}
